<div class="jumbotron">	
	<div id="frm">
		<?php
		echo form_open('employee/search', array('id' => 'frm_sch', 'class' => 'form-inline'));
		?>
		<div class="input-append">
			<?php
			echo form_input(array('class' => 'span2', 'name' => 'txt_sch'));
			echo form_submit('btn_sch', 'Search', 'class="btn btn-primary"');
			?>
		</div>	<!-- /* -- /.input-append -- */-->
		<?php
		echo form_close();
		?>
	</div>
	<div class="cleaner"></div>
	<div id="navbar-inner" class="navbar-inner">
		<span class="span-leave">LEAVE EMPLOYEE MANAGEMENT</span>
	</div>
</div>
<!-- Example row of columns -->
<div>
	<?php
	$this->load->view("incs/dept_menu");
	?>
</div>
<div class="row-fluid">	
	<?php
	if ($this->session->userdata('admin')) {
		if ($this->uri->segment(3) === "department" OR !$this->uri->segment(3)) {
			$this->load->view("department/department");
		} else {
			$this->load->view("department/sub_department");
		}
	} else {
		redirect('main/');
	}
	?>
</div>